package com.sdry.approval.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sdry.approval.entity.ForMySponsor;
import com.sdry.approval.mapper.ForMySponsorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @program: info_sdry
 * @description: 待我审批
 * @author: cb
 * @create: 2020-02-24 17:40
 **/
@Transactional(rollbackFor = Exception.class)
@Service
public class ForMySponsorServiceImpl extends ServiceImpl<ForMySponsorMapper, ForMySponsor> implements ForMySponsorService{

    @Autowired
    private ForMySponsorMapper forMySponsorMapper;


    @Override
    public Integer updateForMy(String requestType, Long requestId, Long userId, String status) {
        return forMySponsorMapper.updateForMy(requestType,requestId,userId,status);
    }
}
